<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./../../oldVue.js"></script>
</head>

<body>
    <div id="app">
        <div v-if='ishow'>{{msg}}</div>
        <div @click='updates'>更新</div>
    </div>

    <script>
      
        var app = new Vue({
            el: '#app',
            beforeCreate() { },
            created() { },
            beforeMount() { },
            mounted: () => { },
            beforeUpdate() { },
            updated() { },
            beforeDestroy() { },
            destroyed() { },
            data: function () {
                return {
                    ishow:false,
                    msg:'1'
                }
            },
            methods: {
                updates() {
                    this.ishow = true
                    this.msg = '2222'
                }
            }
        })

    </script>

</body>

</html>


